package jdk8.homework.Demo09;

import java.util.function.Function;

public class Demo09 {
    public static void main(String[] args) {
        String str = "赵丽颖,20";
        hh(s -> s.split(",")[1],
                s -> Integer.parseInt(s),
                s -> s += 100, str);
    }

    private static void hh(Function<String, String> f1, Function<String, Integer> f2, Function<Integer, Integer> f3, String s) {
        System.out.println(f3.apply(f2.apply(f1.apply(s))));
    }
}
